package test1.Chicken_Rabbit_Cage;
//阶乘
public class Digui {
    public static void main(String[] args) {
    int i=Chengfa(4);
        System.out.println(i);
    }
    public static int Chengfa(int n){
        if (n==1){
            return 1;
        }else {
            return n*Chengfa(n-1);
        }
    }
}
